package com.murray.assignment.utils;

import com.murray.assignment.pojo.Goods;

import java.util.List;

/**
 * @author Murray
 * @Date 2021/6/23
 * @Time 15:22
 */
public class SolrPages<T> {

    /**
     * 当前页页码
     */
    private Integer pageIndex;
    /**
     * 每页大小
     */
    private Integer pageSize;
    /**
     * 总页数
     */
    private Integer pageCount;
    /**
     * 总记录数
     */
    private Integer recordCount;
    /**
     * 当前页的数据
     */
    private List<T> goodsList;

    public SolrPages() {
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getPageCount() {
        return pageCount;
    }

    public void setPageCount(Integer pageCount) {
        this.pageCount = pageCount;
    }

    public Integer getRecordCount() {
        return recordCount;
    }

    public void setRecordCount(Integer recordCount) {
        this.recordCount = recordCount;
    }

    public List<T> getGoodsList() {
        return goodsList;
    }

    public void setGoodsList(List<T> goodsList) {
        this.goodsList = goodsList;
    }

    public Integer getPageIndex() {
        return pageIndex;
    }

    public void setPageIndex(Integer pageIndex) {
        this.pageIndex = pageIndex;
    }

    public SolrPages(Integer pageIndex, Integer pageSize, Integer pageCount, Integer recordCount, List<T> goodsList) {
        this.pageIndex = pageIndex;
        this.pageSize = pageSize;
        this.pageCount = pageCount;
        this.recordCount = recordCount;
        this.goodsList = goodsList;
    }
}
